var runtime.gomaxprocs
31 uses
runtime (current package)
debug.go#L76: ret := int(gomaxprocs)
debug.go#L125: curr := gomaxprocs
mcleanup.go#L626: return uint32(max(gomaxprocs/4, 1))
metrics.go#L436: out.scalar = uint64(gomaxprocs)
mgc.go#L730: work.stwprocs, work.maxprocs = gomaxprocs, gomaxprocs
mgc.go#L763: gcController.startCycle(now, int(gomaxprocs), trigger)
mgc.go#L1029: gcController.endCycle(now, int(gomaxprocs), work.userForced)
mgc.go#L1356: if gcBgMarkWorkerCount >= gomaxprocs {
mgc.go#L1371: for gcBgMarkWorkerCount < gomaxprocs {
mgcpacer.go#L729: if gomaxprocs <= 1 {
mgcpacer.go#L738: id := int32(cheaprandn(uint32(gomaxprocs - 1)))
mgcscavenge.go#L413: return gomaxprocs
mstats.go#L635: for i := 0; i < int(gomaxprocs); i++ {
mstats.go#L973: s.TotalTime = sched.totaltime + (now-sched.procresizetime)*int64(gomaxprocs)
proc.go#L1654: sched.stopwait = gomaxprocs
proc.go#L1774: procs := gomaxprocs
proc.go#L2156: sched.safePointWait = gomaxprocs - 1
proc.go#L3187: if sched.npidle.Load() == gomaxprocs-1 && sched.lastpoll.Load() != 0 {
proc.go#L3505: if mp.spinning || 2*sched.nmspinning.Load() < gomaxprocs-sched.npidle.Load() {
proc.go#L5870: old := gomaxprocs
proc.go#L6000: var int32p *int32 = &gomaxprocs // make compiler check that gomaxprocs is an int32
proc.go#L6266: if debug.schedtrace <= 0 && (sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs) {
proc.go#L6268: if sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs {
proc.go#L6531: print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle.Load(), " threads=", mcount(), " spinningthreads=", sched.nmspinning.Load(), " needspinning=", sched.needspinning.Load(), " idlethreads=", sched.nmidle, " runqueue=", sched.runq.size)
proc.go#L6754: curr := gomaxprocs
proc.go#L6906: n = min(n, sched.runq.size, sched.runq.size/gomaxprocs+1)
proc.go#L7511: if i >= active_spin || numCPUStartup <= 1 || gomaxprocs <= sched.npidle.Load()+sched.nmspinning.Load()+1 {
runtime2.go#L1213: gomaxprocs int32
trace.go#L290: tl.Gomaxprocs(gomaxprocs) // Get this as early in the trace as possible. See comment in traceAdvance.
trace.go#L459: tl.Gomaxprocs(gomaxprocs)